package com.buildings.activity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.buildings.R;
import com.buildings.base.BaseActivity;
import com.buildings.util.Utils;
import com.esri.arcgisruntime.data.ShapefileFeatureTable;
import com.esri.arcgisruntime.layers.FeatureLayer;
import com.esri.arcgisruntime.symbology.SimpleFillSymbol;
import com.esri.arcgisruntime.symbology.SimpleLineSymbol;
import com.esri.arcgisruntime.symbology.SimpleRenderer;

import androidx.annotation.Nullable;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SettingActivity extends BaseActivity {
    @BindView(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        ButterKnife.bind(this);
        init();
    }

    private void init() {
        tvTitle.setText("设置页面");
    }

    @OnClick({R.id.iv_back, R.id.btn_logout, R.id.ll_modify_psd,R.id.ll_sd})
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.btn_logout:
                Utils.logout(activity);
                finish();
                break;
            case R.id.ll_modify_psd:
                startActivity(new Intent(activity, ModifyPasswordActivity.class));
                break;
            case R.id.ll_sd:
                startActivity(new Intent(activity, ReadFileActivity.class));
                break;
        }
    }
}
